﻿using System.Web;
using DeluxeSources.Practices.ObjectContracts;

namespace DeluxeSources.Practices.Handlers
{
    /// <summary>
    /// ExecuteImportHandler 的摘要说明
    /// </summary>
    public class ExecuteImportHandler : IHttpHandler,System.Web.SessionState.IRequiresSessionState
    {

        public void ProcessRequest(HttpContext context)
        {
            (context.Session["DataSource"] as ExcelDataItemCollection).ExecuteImport();
            context.Response.Redirect("~/WebPages/FileChoisePage.aspx");
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}